﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ScatSystem.Models;

namespace ScatSystem.Controllers
{
    // job 问卷
    [Route("api/[controller]")]
    [ApiController]
    public class StudentController : ControllerBase
    {
        // 登录验证，将用户名（学号）和密码通过Student验证, admin/admin特判
        [HttpPost("Authenticate")]
        public ActionResult<Student> Authenticate([FromBody] Student student)
        {
            throw new NotImplementedException();
        }

        // 获取全部Job 查看填写详情
        [HttpPost("GetJobList")]
        public ActionResult<List<JobInfoDto>> GetJobList([FromBody] Student student)
        {
            throw new NotImplementedException();
        }

        // 查看单个Job填写详情，查看和编辑都是用这个方法
        [HttpPost("GetJob")]
        public ActionResult<JobInfoDto> GetJob([FromBody] Job job)
        {
            throw new NotImplementedException();
        }

        // 保存Job
        [HttpPost("SaveJob")]
        public ActionResult<String> SaveJob([FromBody] JobInfoDto jobInfo)
        {
            throw new NotImplementedException();
        }

        // 提交Job
        [HttpPost("CommitJob")]
        public ActionResult<String> CommitJob([FromBody] JobInfoDto jobInfo)
        {
            throw new NotImplementedException();
        }

        // 查看所有消息
        [HttpPost("GetMessageList")]
        public ActionResult<List<Message>> GetMessageList([FromBody] Student student)
        {
            throw new NotImplementedException();
        }
    }
}